package com.baishancloud.log.traffic

import scala.beans.BeanProperty

/**
 *
 * @author ziqiang.wang 
 * @date 2021/12/22 15:56
 */
class Calculate extends Serializable

case class LogRecordKey(timeAt5Min: String, domain: String) extends Serializable

case class LogRecord(@BeanProperty time_at_5min: String, @BeanProperty domain: String, @BeanProperty traffic: Long) extends Serializable {
  def getKey: LogRecordKey = {
    LogRecordKey(time_at_5min, domain)
  }
}

case class Result(@BeanProperty time_at_5min: String, @BeanProperty domain: Int, @BeanProperty traffic: Long) extends Serializable